package com.example.intermediateactivity.entity;

public class CartInfo {
    public int id;
    public int goodsId;
    public int count;
    public GoodsInfo goods;

    public CartInfo() {
    }

    public CartInfo(int id, int goodsId, int count) {
        this.id = id;
        this.goodsId = goodsId;
        this.count = count;
        this.goods = new GoodsInfo();
    }

    @Override
    public String toString() {
        return "CartInfo{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", count=" + count +
                ", goods=" + goods.toString() +
                '}';
    }
}
